package com.sir.tao.carhire.shiro;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author dyy
 * @data 2021/12/6 16:59
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyJsonWebToken implements AuthenticationToken {


    private String token;

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
